package com.atstudy.headline.web.admin.mapper;

import com.atstudy.headline.entity.BaseDicts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author A
* @description 针对表【base_dicts(基础字典表，维护所有类型映射关系)】的数据库操作Mapper
* @createDate 2025-06-12 13:55:56
* @Entity com.atstudy.headline.entity.BaseDicts
*/
public interface BaseDictsMapper extends BaseMapper<BaseDicts> {

    @Select("SELECT dict_code, description FROM base_dicts WHERE is_active = 1 and dict_type='ad_type'")
    List<Map<Integer, Object>> selectAdType();
}




